#ifndef ANIMATION_H
#define ANIMATION_H

#include "EngineApi.h"
#include "Graphics.h"

class Animation
{
public:
	 void GetCurrentUV(unsigned int frameNumber);
	 void AnimateSprite(float frameRate);
	 Animation(D3DVertexUV* vertices,Texture* pTexture, float frameWidth, float frameHeight, unsigned int cant);
private:
	 Texture*	  m_pTexture;
	 D3DVertexUV* m_pVertices;
	 float	      m_frameWidth;
	 float	      m_frameHeight;
	 unsigned int m_cant;
	
	 float m_currentU, m_currentV;
	 
	 unsigned int m_frameNumber;
	 float		  m_miliSecondsAcum;
};
#endif//ANIMATION_H 